package ontology.concepts.employmentlaw;

import ontology.concepts.general.INorm;

public class Norm implements INorm{

	private String article;
	private String item;
	private String number;
	private String description;
	private String name;
	
	public String toString()
	{
		StringBuffer str = new StringBuffer();
		str.append("( ");
		str.append("article: "+this.article+";");
		str.append("item: "+this.item+";");
		str.append("number: "+this.number+";");
		str.append("description: "+this.description+";");
		str.append(" )");
		return str.toString();
	}
	


	public String getArticle() {
		return article;
	}



	public void setArticle(String article) {
		this.article = article;
		name = article;
	}



	public String getItem() {
		return item;
	}



	public void setItem(String item) {
		this.item = item;
	}



	public String getNumber() {
		return number;
	}



	public void setNumber(String number) {
		this.number = number;
	}



	public String getDescription() {
		return description;
	}



	public void setDescription(String description) {
		this.description = description;
	}



	@Override
	public boolean equals(Object obj) 
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Norm other = (Norm) obj;
		if (article == null) 
		{
			if (other.article != null)
				return false;
		} 
		else if (!article.equals(other.article))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (item == null) {
			if (other.item != null)
				return false;
		} else if (!item.equals(other.item))
			return false;
		if (number == null) {
			if (other.number != null)
				return false;
		} else if (!number.equals(other.number))
			return false;
		return true;
	}



	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
		
	}
	
	
}
